<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动画效果</title>
    <script type="text/javascript" src="../js/jquery-3.4.1.min.js"></script>
    <script>
        $(function(){
           $("#d1").click(function(){
               $(this).animate({"left":"1200px","top":"0px","width":"150px","height":"150px",},1000)
                   .animate({"left":"600px","top":"600px","width":"200px","height":"200px",},1000)
                   .animate({"left":"0px","top":"0px","width":"100px","height":"100px",},1000);
               $(this).click();
           })
        });
    </script>
</head>
<body>
<div id="d1" style="width: 100px;height: 100px;background-color: red;position: relative;left: 0px;top: 0px;"></div>
</body>
</html>